package cqrtplm.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 
 * @TableName RUNTONG_ACCREDITATION_PART_LIST
 */
@TableName(value ="RUNTONG_ACCREDITATION_PART_LIST")
@Data
public class RTAccreditationPartListDO {
    /**
     * 
     */
    private Object id;

    /**
     * 
     */
    private Object partid;

    /**
     * 
     */
    private Object partvar;

    /**
     * 
     */
    private Object use;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        RTAccreditationPartListDO other = (RTAccreditationPartListDO) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPartid() == null ? other.getPartid() == null : this.getPartid().equals(other.getPartid()))
            && (this.getPartvar() == null ? other.getPartvar() == null : this.getPartvar().equals(other.getPartvar()))
            && (this.getUse() == null ? other.getUse() == null : this.getUse().equals(other.getUse()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPartid() == null) ? 0 : getPartid().hashCode());
        result = prime * result + ((getPartvar() == null) ? 0 : getPartvar().hashCode());
        result = prime * result + ((getUse() == null) ? 0 : getUse().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", partid=").append(partid);
        sb.append(", partvar=").append(partvar);
        sb.append(", use=").append(use);
        sb.append("]");
        return sb.toString();
    }
}